import { terser } from 'rollup-plugin-terser';
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import json from '@rollup/plugin-json';
export default {
  input: './src/lg-cli.js',
  output: {
    file: './dist/lg-cli.js',
    format: 'cjs',
    name: 'LgCli'
  },
  plugins: [
    json(),
    resolve(), // 处理模块解析
    commonjs({
      exclude: 'node_modules'
    }), // 转换 CommonJS 模块
    terser()
  ]
};
